import config from '../config.js'
import Json from '../Json.js' //测试用数据
import util from "./util.js"

const keyCategories = 'categories';
const keyCacheExpire = 'categories-expire';
const expire = 600; // 600 second

// 获取测试数据
const getJson = type=>{
	//模拟异步请求数据
	return new Promise(resolve=>{
		setTimeout(()=>{
			resolve(Json[type]);
		}, 500)
	})
}

//这里存放所有api,以后初此处

module.exports = {
  getJson
}